/* 组件样式 */

/* 分类管理组件 */
.categories-page {
    animation: fadeInUp 0.8s ease;
}

/* 分类管理树形结构 */
.category-management-tree {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-management-tree .category-tree-item {
    position: relative;
    /* 保证连接线定位 */
}

/* 分类管理树形结构 - 参考首页样式 */
.category-management-tree .category-tree-item {
    margin-bottom: 8px;
}

/* 分类节点基础样式 - 类似首页category-node */
.category-management-tree .category-item {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg,
        rgba(255, 245, 238, 0.9) 0%,
        rgba(255, 228, 225, 0.9) 50%,
        rgba(240, 248, 255, 0.9) 100%);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    padding: 15px;
    margin-bottom: 6px;
    backdrop-filter: blur(10px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.category-management-tree .category-item::before {
    content: '📁';
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 14px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.category-management-tree .category-item:hover {
    border-color: #667eea;
    box-shadow:
        0 10px 30px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transform: translateY(-4px) scale(1.01);
}

.category-management-tree .category-item:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

/* 顶级分类样式 - 类似首页root-category */
.category-management-tree .root-category {
    background: linear-gradient(135deg,
        rgba(255, 182, 193, 0.9) 0%,
        rgba(173, 216, 230, 0.9) 50%,
        rgba(221, 160, 221, 0.9) 100%);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        0 12px 35px rgba(102, 126, 234, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    margin-bottom: 15px;
    padding: 18px;
}

.category-management-tree .root-category:hover {
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.25);
    transform: translateY(-3px);
}

/* 二级分类样式 - 类似首页sub-category */
.category-management-tree .sub-category {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-left: 40px;
    margin-top: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 12px;
}

.category-management-tree .sub-category:hover {
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    transform: translateX(5px) translateY(-2px);
}

/* 三级分类样式 - 类似首页sub-sub-category */
.category-management-tree .sub-sub-category {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(102, 126, 234, 0.15);
    margin-left: 40px;
    margin-top: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 10px;
}

.category-management-tree .sub-sub-category:hover {
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
    transform: translateX(3px) translateY(-1px);
}

/* 更深层级分类 */
.category-management-tree .deep-category {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(102, 126, 234, 0.1);
    margin-left: 40px;
    margin-top: 4px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
    padding: 8px;
}

.category-management-tree .deep-category:hover {
    border-color: rgba(102, 126, 234, 0.2);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    transform: translateX(2px) translateY(-1px);
}

/* 分类项头部 - 类似首页category-main */
.category-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    position: relative;
}

.category-item-main {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    cursor: pointer;
    transition: background 0.3s ease;
    padding: 0; /* 移除padding，因为外层category-item已有padding */
}

.category-item-main:hover {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    padding: 8px; /* 悬浮时添加padding */
    margin: -8px; /* 负margin抵消padding */
}

/* 折叠图标 - 类似首页category-toggle */
.category-toggle-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 50%;
    color: #667eea;
    font-size: 11px;
    transition: all 0.3s ease;
    cursor: pointer;
    flex-shrink: 0;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.category-toggle-icon:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
    border-color: #667eea;
}

.category-item.expanded .category-toggle-icon {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.category-item.expanded .category-toggle-icon i {
    transform: rotate(90deg);
}

/* 分类图标 - 类似首页category-icon */
.category-icon-wrapper {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    color: white;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.category-item:hover .category-icon-wrapper {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.sub-category .category-icon-wrapper {
    width: 38px;
    height: 38px;
    font-size: 17px;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 3px 12px rgba(79, 172, 254, 0.3);
}

.sub-sub-category .category-icon-wrapper {
    width: 34px;
    height: 34px;
    font-size: 15px;
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    box-shadow: 0 2px 10px rgba(168, 237, 234, 0.3);
}

.deep-category .category-icon-wrapper {
    width: 30px;
    height: 30px;
    font-size: 13px;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    box-shadow: 0 2px 8px rgba(255, 234, 167, 0.3);
}

/* 分类信息 */
.category-info {
    flex: 1;
    min-width: 0;
}

.category-name {
    margin: 0 0 8px 0;
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

.root-category .category-name {
    font-size: 16px;
}

.sub-category .category-name {
    font-size: 14px;
}

.sub-sub-category .category-name,
.deep-category .category-name {
    font-size: 13px;
}

.category-path {
    display: block;
    color: #666;
    font-size: 12px;
    margin-bottom: 8px;
    opacity: 0.8;
}

.category-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.stat-item {
    font-size: 12px;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

/* 操作按钮 - 紧凑型 */
.category-item-actions {
    display: flex;
    gap: 6px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.category-item:hover .category-item-actions {
    opacity: 1;
}

.action-btn {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 12px;
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover::before {
    opacity: 1;
}

.edit-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(79, 172, 254, 0.3);
}

.edit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.4);
}

.delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    box-shadow: 0 2px 6px rgba(255, 107, 107, 0.3);
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(255, 107, 107, 0.4);
}

/* 子分类容器 - 简洁版 */
.subcategories-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 8px;
}

.subcategories-container.expanded {
    max-height: 2000px;
    opacity: 1;
}

.subcategories-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* 移除所有连接线样式 */

/* 分类管理树形连接线（模仿首页） */
.category-management-tree .tree-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #667eea, rgba(102, 126, 234, 0.3));
    border-radius: 1px;
    z-index: 0;
}

.category-management-tree .category-connector {
    position: absolute;
    left: -25px;
    top: 50%;
    width: 20px;
    height: 2px;
    background: #667eea;
    border-radius: 1px;
    transform: translateY(-50%);
    z-index: 1;
}
.category-management-tree .category-connector::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
    transform: translateY(-50%);
}
.category-management-tree .category-connector.small {
    width: 15px;
    left: -20px;
}
.category-management-tree .category-connector.small::before {
    width: 4px;
    height: 4px;
    right: -2px;
}
.category-management-tree .category-connector.tiny {
    width: 12px;
    left: -18px;
}
.category-management-tree .category-connector.tiny::before {
    width: 3px;
    height: 3px;
    right: -1px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .category-item-header {
        padding: 16px;
        gap: 12px;
    }

    .category-item-main {
        gap: 12px;
    }

    .category-icon-wrapper {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .sub-category .category-icon-wrapper {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .sub-sub-category .category-icon-wrapper {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    .category-stats {
        flex-direction: column;
        gap: 6px;
    }

    .action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }

    .sub-category {
        margin-left: 12px;
    }

    .sub-sub-category {
        margin-left: 12px;
    }
}

.category-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.category-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid #667eea;
}

.category-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.category-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.category-item-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-item-actions {
    display: flex;
    gap: 8px;
}

.category-item-actions button {
    padding: 6px 12px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.edit-btn {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.delete-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
}

.category-item-info {
    color: #666;
    font-size: 14px;
}

.category-item-info p {
    margin: 8px 0;
    line-height: 1.4;
}

.category-stats {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
    margin-top: 8px;
}

.category-stats span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 分类树样式 */
.category-tree {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-tree-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.category-tree-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.category-toggle {
    background: none;
    border: none;
    padding: 4px;
    margin-right: 8px;
    cursor: pointer;
    color: #667eea;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.category-toggle:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: scale(1.1);
}

.category-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-icon {
    margin-right: 8px;
    color: #667eea;
}

.subcategory-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

.subcategories {
    padding: 0 20px 20px 20px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.02) 0%, rgba(118, 75, 162, 0.02) 100%);
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.subcategory-item {
    margin-top: 12px;
    margin-left: 32px;
    border-left: 3px solid #667eea;
    padding-left: 16px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
}

.subcategory-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #667eea;
    border-radius: 50%;
}

.subcategory-item .category-icon {
    color: #764ba2;
}

.category-level {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
}

.category-path {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin: 4px 0;
}

/* 树形选择组件样式 */
.tree-select {
    position: relative;
    width: 100%;
    z-index: 1000;
}

.tree-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.tree-select-trigger:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.tree-select.is-open {
    z-index: 10000;
}

.tree-select.is-open .tree-select-trigger {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
}

.tree-select-value {
    flex: 1;
    color: #333;
    font-size: 14px;
}

.tree-select-value:empty::before {
    content: attr(placeholder);
    color: #999;
}

.tree-select-arrow {
    color: #667eea;
    transition: transform 0.3s ease;
    margin-left: 8px;
}

.tree-select-arrow.is-open {
    transform: rotate(180deg);
}

.tree-select-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    margin-left: 8px;
    transition: all 0.3s ease;
}

.tree-select-clear:hover {
    background: #f0f0f0;
    color: #666;
}

.tree-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 999999 !important;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tree-select-options {
    padding: 8px 0;
}

.tree-select-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    position: relative;
}

.tree-select-option:hover {
    background: rgba(102, 126, 234, 0.1);
    border-left-color: #667eea;
}

.tree-select-option.is-selected {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-left-color: #667eea;
    color: #667eea;
    font-weight: 600;
}

.tree-select-option.has-children {
    /* 有子项的选项样式 */
}

.tree-select-option.is-expanded {
    background: rgba(102, 126, 234, 0.05);
}

.option-indent {
    flex-shrink: 0;
}

.option-toggle {
    background: none;
    border: none;
    padding: 4px;
    margin-right: 4px;
    cursor: pointer;
    color: #667eea;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.option-toggle:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: scale(1.1);
}

.option-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.option-toggle-placeholder {
    width: 20px;
    height: 20px;
    margin-right: 4px;
    flex-shrink: 0;
}

.option-icon {
    color: #667eea;
    margin-right: 8px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.option-text {
    flex: 1;
    font-size: 14px;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.option-text:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.option-level {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 500;
    margin-left: 8px;
    flex-shrink: 0;
}

.option-children-count {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 4px;
    flex-shrink: 0;
}

.tree-select-children {
    border-left: 2px solid rgba(102, 126, 234, 0.2);
    margin-left: 16px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        transform: translateY(0);
    }
}

.tree-select-option-group {
    /* 分组容器样式 */
}

/* 收藏管理组件 */
.bookmarks-content {
    animation: fadeInUp 0.8s ease;
}

.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 24px;
    position: relative;
    z-index: 1;
}

.bookmark-card {
    background: linear-gradient(135deg,
        rgba(255, 228, 225, 0.9) 0%,
        rgba(255, 209, 220, 0.9) 25%,
        rgba(221, 214, 243, 0.9) 50%,
        rgba(207, 216, 220, 0.9) 75%,
        rgba(240, 248, 255, 0.9) 100%);
    border-radius: 22px;
    padding: 20px;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.bookmark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        #ff6b9d 0%,
        #c44569 25%,
        #667eea 50%,
        #764ba2 75%,
        #f093fb 100%);
    border-radius: 22px 22px 0 0;
}

.bookmark-card::after {
    content: '✨';
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    transform: scale(0.8) rotate(-15deg);
}

.bookmark-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.bookmark-card:hover::after {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

.bookmark-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.bookmark-favicon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 12px;
}

.bookmark-info {
    flex: 1;
    min-width: 0;
}

.bookmark-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bookmark-url {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bookmark-url:hover {
    text-decoration: underline;
}

.bookmark-description {
    color: #666;
    font-size: 14px;
    margin: 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.bookmark-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.bookmark-category {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
}

.bookmark-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.bookmark-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bookmark-card:hover .bookmark-actions {
    opacity: 1;
}

.bookmark-actions button {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

/* 搜索组件 */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding: 20px;
    background: linear-gradient(135deg,
        rgba(255, 240, 245, 0.9) 0%,
        rgba(240, 248, 255, 0.9) 50%,
        rgba(248, 240, 255, 0.9) 100%);
    border-radius: 20px;
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.search-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        #ff6b9d 0%,
        #c44569 25%,
        #667eea 50%,
        #764ba2 75%,
        #f093fb 100%);
    border-radius: 20px 20px 0 0;
}

.search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-btn {
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* 筛选状态提示 */
.filter-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: linear-gradient(135deg,
        rgba(255, 182, 193, 0.3) 0%,
        rgba(173, 216, 230, 0.3) 50%,
        rgba(221, 160, 221, 0.3) 100%);
    border-radius: 18px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 5;
    overflow: hidden;
}

.filter-status::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 18px 18px 0;
}

.filter-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg,
        rgba(255, 240, 245, 0.9) 0%,
        rgba(240, 248, 255, 0.9) 100%);
    border-radius: 25px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.filter-tag:hover {
    transform: translateY(-1px);
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.filter-tag i {
    color: #667eea;
    font-size: 12px;
}

.clear-filter {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 2px;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.clear-filter:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

.filter-result {
    font-size: 13px;
    color: #667eea;
    font-weight: 600;
}

/* ==================== 分类管理页面收藏功能样式 ==================== */

/* 查看收藏按钮 */
.view-bookmarks-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.view-bookmarks-btn:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.view-bookmarks-btn.active {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

/* 批量操作面板 */
.batch-operation-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.batch-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.batch-info i {
    font-size: 16px;
}

.batch-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-move-select {
    min-width: 200px;
}

.batch-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.batch-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.batch-btn.move-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.batch-btn.move-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
}

.batch-btn.delete-btn {
    background: #ff6b6b;
    color: white;
}

.batch-btn.delete-btn:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.batch-btn.cancel-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.batch-btn.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* 分类收藏区域 */
.category-bookmarks-section {
    margin-top: 15px;
    margin-left: 40px;
    padding: 15px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border-left: 4px solid #667eea;
}

.bookmarks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.bookmarks-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #667eea;
}

.bookmarks-title i {
    font-size: 16px;
}

.bookmarks-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-all-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #667eea;
    font-weight: 500;
}

.select-all-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

/* 空收藏状态 */
.empty-bookmarks {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    color: #999;
    font-size: 14px;
}

.empty-bookmarks i {
    font-size: 32px;
    margin-bottom: 10px;
    opacity: 0.5;
}

/* 收藏列表 */
.bookmarks-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bookmark-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.bookmark-item:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.bookmark-item.selected {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.bookmark-checkbox {
    margin-top: 2px;
}

.bookmark-checkbox input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
}

.bookmark-icon {
    margin-top: 2px;
    color: #667eea;
    font-size: 16px;
}

.bookmark-content {
    flex: 1;
    min-width: 0;
}

.bookmark-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.bookmark-url {
    font-size: 13px;
    color: #667eea;
    margin-bottom: 6px;
    word-break: break-all;
}

.bookmark-description {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.4;
}

.bookmark-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #999;
}

.bookmark-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.bookmark-meta i {
    font-size: 11px;
}

.bookmark-actions {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}

.bookmark-actions .action-btn {
    padding: 6px 8px;
    font-size: 12px;
}

.visit-count {
    color: #4caf50 !important;
}

.created-date {
    color: #999 !important;
}

/* 分页组件 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    padding: 20px;
}

.pagination button {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.pagination button.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* 空状态组件 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: #666;
}

.empty-state p {
    font-size: 1rem;
    margin-bottom: 24px;
}

/* 加载状态组件 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #667eea;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

.loading-text {
    font-size: 1rem;
    font-weight: 500;
}

/* 标签组件 */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.tag.success {
    background: rgba(86, 171, 47, 0.1);
    color: #56ab2f;
}

.tag.warning {
    background: rgba(240, 147, 251, 0.1);
    color: #f093fb;
}

.tag.danger {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 120px;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    font-size: 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 进度条 */
.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* 模态框样式 */
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #f0f0f0;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #666;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.preview-btn {
    margin-top: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
}

.preview-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23, 162, 184, 0.3);
}

/* 表单增强样式 */
.form-group select {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-group select:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1), 0 4px 12px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

/* 搜索栏下拉框样式 */
.search-bar select {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23667eea' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* 加载状态 */
.modal .btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.modal .btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 个人信息页面样式 */
.profile-content {
    animation: fadeInUp 0.8s ease;
}

.profile-card {
    background: linear-gradient(135deg,
        rgba(255, 228, 225, 0.9) 0%,
        rgba(255, 209, 220, 0.9) 25%,
        rgba(221, 214, 243, 0.9) 50%,
        rgba(207, 216, 220, 0.9) 75%,
        rgba(240, 248, 255, 0.9) 100%);
    border-radius: 30px;
    padding: 40px;
    margin-bottom: 32px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg,
        #ff6b9d 0%,
        #c44569 25%,
        #667eea 50%,
        #764ba2 75%,
        #f093fb 100%);
    border-radius: 30px 30px 0 0;
}

.profile-card::after {
    content: '👤';
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 24px;
    opacity: 0.6;
}

.profile-card:hover {
    transform: translateY(-3px);
    box-shadow:
        0 15px 50px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.profile-avatar {
    flex-shrink: 0;
}

.avatar-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.avatar-circle::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.avatar-text {
    font-size: 48px;
    font-weight: 700;
    color: white;
    z-index: 1;
}

.profile-info {
    flex: 1;
}

.profile-info h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-email {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 24px 0;
}

.profile-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
    padding: 16px 24px;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #999;
    font-weight: 500;
}

/* 最近活动 */
.recent-activity {
    background: linear-gradient(135deg,
        rgba(248, 240, 255, 0.9) 0%,
        rgba(240, 248, 255, 0.9) 50%,
        rgba(255, 245, 238, 0.9) 100%);
    border-radius: 28px;
    padding: 32px;
    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.recent-activity::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        #ff6b9d 0%,
        #c44569 25%,
        #667eea 50%,
        #764ba2 75%,
        #f093fb 100%);
    border-radius: 28px 28px 0 0;
}

.recent-activity h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg,
        rgba(255, 182, 193, 0.3) 0%,
        rgba(173, 216, 230, 0.3) 50%,
        rgba(221, 160, 221, 0.3) 100%);
    border-radius: 18px;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
    position: relative;
    overflow: hidden;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 18px 18px 0;
}

.activity-item:hover {
    background: linear-gradient(135deg,
        rgba(255, 182, 193, 0.5) 0%,
        rgba(173, 216, 230, 0.5) 50%,
        rgba(221, 160, 221, 0.5) 100%);
    transform: translateX(6px) scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.activity-time {
    font-size: 12px;
    color: #999;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .profile-stats {
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }

    .stat-item {
        flex: 1;
        min-width: 100px;
    }
}

/* 通用响应式调整 */
@media (max-width: 768px) {
    .category-list,
    .bookmarks-grid {
        grid-template-columns: 1fr;
    }

    .search-bar {
        flex-direction: column;
    }

    .pagination {
        flex-wrap: wrap;
    }

    .bookmark-actions {
        opacity: 1;
        position: static;
        margin-top: 12px;
        justify-content: center;
    }

    .modal {
        margin: 20px;
        padding: 20px;
        max-height: 90vh;
    }

    .modal-actions {
        flex-direction: column;
    }

    .modal-actions .btn {
        width: 100%;
    }

    /* 隐藏式标签侧边栏响应式 */
    .hidden-tab-sidebar {
        gap: 20px;
        padding: 15px 0;
        left: 0.5px;
    }

    .tab-indicator {
        width: 6px;
        height: 32px;
    }

    .tab-content {
        padding: 10px 16px 10px 12px;
        min-width: 100px;
        max-width: 160px;
        left: 3px;
    }

    .content-icon {
        font-size: 16px;
        width: 20px;
        height: 20px;
    }

    .tab-text {
        font-size: 12px;
    }

    .tab-desc {
        font-size: 9px;
    }
}

/* 批量操作相关样式 */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.action-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.batch-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.batch-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.batch-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.batch-status {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.batch-select-btn, .batch-clear-btn, .batch-move-btn, .batch-delete-btn, .batch-exit-btn {
    padding: 8px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.batch-select-btn {
    background: #28a745;
    color: white;
}

.batch-select-btn:hover:not(:disabled) {
    background: #218838;
}

.batch-clear-btn {
    background: #6c757d;
    color: white;
}

.batch-clear-btn:hover:not(:disabled) {
    background: #5a6268;
}

.batch-move-btn {
    background: #17a2b8;
    color: white;
}

.batch-move-btn:hover:not(:disabled) {
    background: #138496;
}

.batch-delete-btn {
    background: #dc3545;
    color: white;
}

.batch-delete-btn:hover:not(:disabled) {
    background: #c82333;
}

.batch-exit-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.batch-exit-btn:hover {
    background: #e9ecef;
}

.batch-select-btn:disabled, .batch-clear-btn:disabled, .batch-move-btn:disabled, .batch-delete-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 收藏卡片批量选择样式 */
.bookmark-checkbox {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
}

.batch-checkbox {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
}

.checkbox-label {
    display: none;
}

.bookmark-card.selected {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.05);
}

.bookmark-card {
    position: relative;
}

/* 批量操作模式下的卡片调整 */
.bookmark-card .bookmark-header {
    padding-left: 40px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .batch-action-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .batch-status {
        text-align: center;
    }

    .batch-select-btn, .batch-clear-btn, .batch-move-btn, .batch-delete-btn, .batch-exit-btn {
        justify-content: center;
    }
}
